/*
 * PayResultKeyValueListItem.java
 * business
 *
 * Created by ChenTao on 2017/6/28.
 *
 * Copyright (c) 2017年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.widget.listview.displaylistitem;

import android.content.Context;

import com.yidiandao.business.data.response.QueryOrderResultResponse;
import com.yidiandao.business.ui.widget.listview.DisplayListItem;
import com.yidiandao.business.ui.widget.listview.viewholder.PayResultKeyValueHolder;

/**
 * PayResult-Key-Value-ListItem
 * <p>
 * Created by ChenTao(chentao7v@gmail.com) on 2017-06-28 11:48
 */
public class PayResultKeyValueListItem extends DisplayListItem<PayResultKeyValueHolder, QueryOrderResultResponse.Data.PayDesc> {

    public PayResultKeyValueListItem(QueryOrderResultResponse.Data.PayDesc payDesc) {
        super(payDesc);
    }

    @Override
    public void onShow(Context context, PayResultKeyValueHolder holder) {
        holder.refreshUI(data);
    }

    @Override
    public String getDisplayItemTag() {
        return PayResultKeyValueListItem.class.getSimpleName();
    }

    @Override
    public Class<PayResultKeyValueHolder> getViewHolderClazz() {
        return PayResultKeyValueHolder.class;
    }
}
